Variational ansatz for the superfluid Mott-insulator transition in optical lattices | Synapse