A “bright” University of East Anglia student died after taking a fatal dose of methamphetamine, an inquest has heard.