Democrat Ralph Northam elected lieutenant governor