Equilibrium orientation of confined diblock copolymer films