Wave Reflection and Transmission from Anisotropic Layers Through Riccati Equations