Signal processing techniques for efficient compilation of controlled rotations in trapped ions