Berdych beats del Potro to reach Madrid final