Whale optimization algorithm based on dynamic pinhole imaging and adaptive strategy