how does metformin work for pcos