‘Outsider’ Amar Singh appointed as general secretary of SP