Electronic properties of 2D hybrid organic/inorganic perovskites for optoelectronic applications