Constraints on mantle source compositions imposed by phosphorus and the rare-earth elements