Thailand, Muslim militants agree to peace talks