Tomas Berdych is the first man through to the Australian Open semi-finals after a four-set victory over David Ferrer.