Pak authorities to inspect site of railway accident that killed 31 people