The Western district of the Methodist church has elected an openly gay bishop despite the denomination's ban on same-sex relationships.