Controlling and Optimizing Amplified Spontaneous Emission in Perovskite.