Pressure‐Induced Valence Transitions in Rare Earth Chalcogenides and Pnictides