Phase transition and photoluminescence properties in a hybrid layered perovskite: (cyclohexylmethylammonium)2PbBr4