Space charge effects in field emission: One dimensional theory