Sustainable solution to the critical challenges of an oceanic wave farm for maximizing power generation