Development of acoustically effective foams: a new micro-macro optimization method