Stability of organic-inorganic hybrid perovskite quasi-2D structures by modulation of alkylammonium ions