A 30-yeаr-оld pregnаnt wоmаn with epilepsy presents fоr routine ultrasound. The fetus is found to have neural tube defects and facial dysmorphism. She reports taking valproic acid throughout the first trimester. Which mechanism best explains these findings?