Theory for Fourier-limited attosecond pulse generation in solids