Large exchange bias in magnetic shape memory alloys by tuning magnetic ground state and magnetic-field history