Medvedev wins first grass court title in timely Wimbledon boost