Infinite projected entangled-pair state algorithm for ruby and triangle-honeycomb lattices