Environmental risk factors and custody status in children of substance abusers