Pionic and muonic X-ray transitions in liquid helium