Origin of modulated structures in Y Ba 2 Cu 3 O 6.63 : A first-principles approach