Man dies after being hit by train in Moray, Scotland