First-principles study of spontaneous polarization in multiferroic BiFeO 3