First law of thermodynamics and Friedmann equations of Friedmann-Robertson-Walker universe