Design Principles to Achieve Highly Efficient, Phase and Temperature Stable Perovskite Semiconductors