Shape optimization of the caudal fin of the three-dimensional self-propelled swimming fish