Amorphous to crystalline transformation in YBCO Superconductors