A general nonconvex multiduality principle