A modulation model for the solar and lunar daily geomagnetic variations