Non-minimal coupling of scalar and gauge fields with gravity: an entropy current and linearized second law