Spectrum formation in superluminous supernovae (Type I)