Pressure dependence of the optical phonon in solid hydrogen and deuterium up to 230 kbar