Invertible weighted composition operators