Electroformation of Janus and patchy capsules