Singularity formation for the 1D compressible Euler equations with variable damping coefficient