Design of FIR digital filters for pulse shaping and channel equalization using time-domain optimization