Andrew McIntyre, 39, was ‘motivated by racial hatred’