Spin-glass state and long-range magnetic order in Pb(Fe1/2Nb1/2)O3