Hybrid organic–inorganic perovskites (HOIPs): opportunities and challenges