what type of compound is caffeine ionic or metallic