Steve Smith and Nathan Lyon starred for Australia as they beat England by 251 runs in the first Test of the five-match series at Edgbaston.