First-principles investigation of BiFeO₃ and related multiferroic materials