Quantum-state storage and processing for polarization qubits in an inhomogeneously broadened Λ-type three-level medium