Duchess of Cambridge thanks nurses for 'huge sacrifices'