A THREE-DIMENSIONAL BABCOCK–LEIGHTON SOLAR DYNAMO MODEL