Fundamentals of water and air pollution