Genoa beat SPAL to leave Serie A drop zone