Social class inequalities in perinatal outcomes: Scotland 1980–2000