From coffee production to machines for optical selection: a case of lateral migration in Costa Rica