Lectures on the Theory of Cosmological Perturbations