Critical Phenomena in Systems of Finite Thickness. II. Ideal Bose Gas