Pulsar magnetospheres in general relativity