Filter Design With Time Domain Mask Constraints: Theory And Applications