Individual and contextual factors in determining attitudes towards crime and punishment