how does valacyclovir work