ENERGY RELEASE AND TRANSFER IN SOLAR FLARES: SIMULATIONS OF THREE-DIMENSIONAL RECONNECTION