Resonance line polarization for arbitrary magnetic fields in optically thick media. II. Case of a plane parallel atmosphere and absence of Zeeman coherences