Gomes HR sparks rally for Oakland against Cubs