Characterizing complex flows using adaptive sparse dynamic mode decomposition with error approximation