Inhomogeneous layered planar structures: an analysis of reflection coefficient