The origin of intranetwork fields: a small-scale solar dynamo