Radiation-hydrodynamic models of X-ray and EUV photoevaporating protoplanetary discs