Study could shed light on causes of epilepsy