Localized states in doped amorphous silicon