Implement resonator energy tracking

This allows to simulate bringing down a portal. However, it should be noted that this does not compute how to bring down a portal with as few bursters as possible, but dealing maximum damage per burster fired.