Structure of nanoscale-pitch helical phases: blue phase and twist-bend nematic phase resolved by resonant soft X-ray scattering.