Text this: Analytical optimal pulse shapes obtained with the aid of genetic algorithms