Teaser 2734: Interlocking squares

From The Sunday Times, 15th February 2015 [link] [link]

Place all of the digits 0 to 9 in the grid so that, reading across or down in crossword fashion, one can see a two-figure square, a three-figure square, and two four-figure squares.

What (in increasing order) are the four squares?

[teaser2734]