Rafael Nadal secured his eighth Barcelona Open title in nine years after dispatching Nicolas Almagro in straight sets.