First principles study of structure and properties of La- and Mn-modified BiFeO3