Effect of boundaries on the force distributions in granular media