First-principles study of manganese-stabilized hafnia