MedAgentBench: A Realistic Virtual EHR Environment to Benchmark Medical LLM Agents