Single-qubit gates for ensemble qubits via off-resonant Raman interaction