Efficient shapes for microswimming: From three-body swimmers to helical flagella.