Structural anomalies in Nd2−xCexCuO4−y: Evidence for mixed valence and charge transfer