Synthesis and crystallization pattern of lead-free perovskites by sol-gel and hydrothermal routes