Electronic and Magnetic Properties of Ti and Fe on Graphene