Energy release and conversion by reconnection in the magnetotail