Self-consistent separable random-phase approximation for Skyrme forces: Giant resonances in axial nuclei