Engineering student with 'enormous potential' dies weeks before graduation