Joint Beamforming Design for RIS-enabled Integrated Positioning and Communication in Millimeter Wave Systems