Generation of magnetic fields in Einstein-aether gravity