Shell-to-shell energy transfer in magnetohydrodynamics. II. Kinematic dynamo.