Church of England ends ban on gay bishops