Many-body potential for molecular interactions