The epilepsy medication sodium valproate is linked to developmental problems in fetuses, but lab studies may now have found a way to prevent this