A general mixing equation with applications to Icelandic basalts