Resolving the solar neutrino problem with KamLAND