how do dinoflagellates obtain energy