Perovskite solar cells: a deep analysis using current–voltage and capacitance–voltage techniques