Generics as safe and effective as brand-name statins, study finds