Active learning with RESSPECT: Resource allocation for extragalactic astronomical transients