Partially premixed combustion in an optically accessible compression ignition engine