Negative capacitance and hysteresis in encapsulated MAPbI3 and lead–tin (Pb–Sn) perovskite solar cells